﻿Public Class MyBookShelf
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If userLoggedIn() Then
            listUserBooks()
        Else
            Response.Redirect("/list.aspx?error=You%20must%20be%20logged%20in%20to%20view%20your%20book%20shelf")

        End If
    End Sub

    Protected Sub listUserBooks()
        bookShelfTable.InnerHtml = getUserBooksTable()
    End Sub

    Protected Sub btn_backToList_Click(sender As Object, e As EventArgs) Handles btn_backToList.Click
        Response.Redirect("/list.aspx")
    End Sub
End Class